// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   GoodAndPetLockBtn.java

package com.tool.btn;

import com.tool.role.RoleData;
import java.awt.event.MouseEvent;
import org.come.bean.LoginResult;
import org.come.until.*;

// Referenced classes of package com.tool.btn:
//			MoBanBtn

public class GoodAndPetLockBtn extends MoBanBtn {

	private int locktype;

	public GoodAndPetLockBtn(String iconpath, int type, int locktype) {
		super(iconpath, type);
		this.locktype = locktype;
	}

	@Override
    public void chooseyes() {
	}

	@Override
    public void chooseno() {
	}

	@Override
    public void nochoose(MouseEvent e) {
		if (locktype == 1) {
			MessagrFlagUntil.setMouse(MessagrFlagUntil.MOUSE10);
		} else if (locktype == 2) {
			if (Util.canBuyOrno) {
				MessagrFlagUntil.setMouse(MessagrFlagUntil.MOUSE11);
			} else if (RoleData.getRoleData().getLoginResult().getPassword() == null) {
				FormsManagement.showForm(32);
			} else {
				FormsManagement.showForm(33);
			}
		} else if (locktype == 3) {
			MessagrFlagUntil.setMouse(MessagrFlagUntil.MOUSE10);
		} else if (locktype == 4) {
			if (Util.canBuyOrno) {
				MessagrFlagUntil.setMouse(MessagrFlagUntil.MOUSE11);
			} else {
				if (RoleData.getRoleData().getLoginResult().getPassword() == null) {
					FormsManagement.showForm(32);
				} else {
					FormsManagement.showForm(33);
				}
			}
		} else if (locktype == 5) {
			MessagrFlagUntil.setMouse(MessagrFlagUntil.MOUSE10);
		} else if (locktype == 6) {
			if (Util.canBuyOrno) {
				MessagrFlagUntil.setMouse(MessagrFlagUntil.MOUSE11);
			} else {
				if (RoleData.getRoleData().getLoginResult().getPassword() == null) {
					FormsManagement.showForm(32);
				} else {
					FormsManagement.showForm(33);
				}
			}
		}
	}
}
